﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class Role : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual string RoleName { get; set; }

        [DataMember]
        public virtual IList<User> UsersOfRole { get; set; }

        public Role()
        {
            this.UsersOfRole = new List<User>();
        }
    }
}